{extend name="admin/public:layout" /}
{block name="title"}部门管理{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 部门管理</a></li>
                <li class="active">修改部门</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">部门名称</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入部门名称"
                               name="dept_name" value="{$info['dept_name']}" datatype="*" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">所属行业</label>
                    <div class="col-sm-4">
                        <select name="dept_pid" class="form-control">
                            <option value="0">顶级部门</option>
                            {volist name="list" id="vo"}
                            <option value="{$vo.dept_id}" {$vo.selected} {$vo.disabled}>{$vo._name}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">部门名称行业</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入部门行业"
                               name="dept_trade" value="{$info['dept_trade']}" datatype="*" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">排序</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="0"
                               name="dept_sort" value="{$info['dept_sort']}"/>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" type="button" id="btnSub">保存内容</button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        iCheck();
        ajaxSubForm('#btnSub');
    });
</script>
{/block}